#! python3
# pw.py - An security password locker program

PASSWORD = {'email': 'VV123456',
            'blog': 'VM987654',
            'facebook': 'YouHave123Pass'}

import sys, pyperclip
if len(sys.argv) < 2:
    print('Usage: py pw.py [account] - copy account password')
    sys.exit()

account = sys.argv[1] # first command line arg is the account name

if account in PASSWORD:
    pyperclip.copy(PASSWORD[account])
    print('Password for '+account+' copied to clipboard.')
else:
    print('There is no account named ' + account)